找到...\sdks\3.2.0\samples的badge目录,修改default_badge.html文件:
AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab', 'width','217', 'height','180', 'id','badge', 'align','middle', 'src','badge', 'quality','high', 'bgcolor','#FFFFFF', 'name','badge', 'allowscriptaccess','all', 'pluginspage','http://www.macromedia.com/go/getflashplayer', 'flashvars','appname=My%20Application&appurl=myapp.air&airversion=1.0&imageurl=test.jpg', 'movie','badge' ); //end AC code }
注意上面的appurl, 不要搞错. 发布该网页, OK.
如果出现
将路径补充完整或修改.htaccess文件都可 最简单的:
‘flashvars’,’appname=NM&appurl=http://liguoliang.com/test/NM.air&airversion=1.0&imageurl=test.jpg’,
搞定.
Look: http://liguoliang.com/test/default_badge.html
AIR文档中相关内容 >>点此<<
FlexBuilder Debug Preferences <->
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.